<!--<?
include L::getHtmlTpl('/html/head.html');
?>-->
<style type="text/css">
    tr.change:hover {
        background-color:#ffffbb;
    }
</style>
<div style="width: 97%;padding-left: 50px">
    <form action="" id="myform" class="row">
        <input type="hidden" id="account" name="account" _value="!empty($this->account) ? $this->account : ''">
        <input type="hidden" id="id" name="id" _value="!empty($this->id) ? $this->id : ''">
        <table width="100%">
            <tr>
                <td style="width: 50%;font-size: 22px;font-weight:bold">
                    我的产品信息
                </td>
                <td style="width: 50%;font-size: 22px;font-weight:bold">
                    别人的产品信息<input type="button" class="btn btn-success" onclick="lookProductObj.lookProduct();" value="更换">
                </td>
            </tr>
            <tr>
                <td style="width: 50%;font-size: 14px;font-weight:bold">ID：<!--<? echo !empty($this->myInfo['id']) ? $this->myInfo['id'] : ''?>--></td>
                <td style="width: 50%;font-size: 14px;font-weight:bold">ID：<!--<? echo !empty($this->otheInfo['itemId']) ? $this->otheInfo['itemId'] : ''?>--></td>
            </tr>
            <tr>
                <td class="baiduFanyi" style="width: 50%;font-size: 14px;font-weight:bold">标题：<!--<? echo !empty($this->myInfo['name']) ? $this->myInfo['name'] : ''?>--></td>
                <td class="baiduFanyi" style="width: 50%;font-size: 14px;font-weight:bold">标题：<!--<? echo !empty($this->otheInfo['itemName']) ? $this->otheInfo['itemName'] : ''?>--></td>
            </tr>
            <tr>
                <td>
                    <img _src="!empty($this->myInfo['main_image']) ? $this->myInfo['main_image'] : ''" class="img-thumbnail img-responsive" style="width: 120px;height: 120px" _data-path="!empty($this->myInfo['main_image']) ? $this->myInfo['main_image'] : ''" onmouseenter="enterGlass(this)" onmouseleave="leaveGlass(this)" />
                    <input type="button" class="btn btn-warning" onclick="lookProductObj.updateTitle();" value="修改标题">
                    <input type="button" class="btn btn-info" onclick="lookProductObj.updateKeyword();" value="提交勾选的关键词">
                </td>
                <td><img _src="!empty($this->otheInfo['mainImage']) ? $this->otheInfo['mainImage'] : ''" class="img-thumbnail img-responsive" style="width: 120px;height: 120px" _data-path="!empty($this->otheInfo['mainImage']) ? $this->otheInfo['mainImage'] : ''" onmouseenter="enterGlass(this)" onmouseleave="leaveGlass(this)" /></td>
            </tr>
            <tr>
                <td style="width: 50%;font-size: 14px;font-weight:bold">刊登时间：<!--<? echo !empty($this->myInfo['date_uploaded']) ? $this->myInfo['date_uploaded'] : ''?>--></td>
                <td style="width: 50%;font-size: 14px;font-weight:bold">刊登时间：<!--<? echo !empty($this->otheInfo['genTime']) ? date('Y-m-d', $this->otheInfo['genTime'] / 1000) : ''?>--></td>
            </tr>
            <tr>
                <td style="width: 50%;font-size: 14px;font-weight:bold">吊牌价：<!--<? echo !empty($this->myInfo['variants'][0]['Variant']['msrp']) ? '$' . $this->myInfo['variants'][0]['Variant']['msrp'] : ''?>-->
                     (wish售价：<!--<?
                        echo !empty($this->myInfo['variants'][0]['Variant']['localized_currency_code']) ? $this->myInfo['variants'][0]['Variant']['localized_currency_code'] : '';
                        echo !empty($this->myInfo['variants'][0]['Variant']['localized_price']) ? $this->myInfo['variants'][0]['Variant']['localized_price'] : '';
                        echo !empty($this->myInfo['variants'][0]['Variant']['localized_shipping']) ? ' + ' . $this->myInfo['variants'][0]['Variant']['localized_shipping'] : '';
                     ?>-->
                    )
                    (wish售价：<!--<?
                    echo !empty($this->myInfo['variants'][0]['Variant']['localized_price']) ? '$' . (round($this->myInfo['variants'][0]['Variant']['localized_price'] / 6.58, 2)) : '';
                    echo !empty($this->myInfo['variants'][0]['Variant']['localized_shipping']) ? ' + ' . (round($this->myInfo['variants'][0]['Variant']['localized_shipping'] / 6.58, 2)) : '';
                    ?>-->
                    )
                </td>
                <td style="width: 50%;font-size: 14px;font-weight:bold">吊牌价：<!--<? echo !empty($this->otheInfo['originalPrice']) ? '$' . $this->otheInfo['originalPrice'] : ''?>-->
                    (wish售价：<!--<?
                    echo !empty($this->otheInfo['wishPrice']) ? '$' . $this->otheInfo['wishPrice'] : '';
                    echo !empty($this->otheInfo['wishFreightPrice']) ? ' + ' . $this->otheInfo['wishFreightPrice'] : '';
                    ?>-->
                    )
                </td>
            </tr>
            <tr>
                <td style="width: 50%;font-size: 14px;font-weight:bold">
                    累计收藏：<!--<? echo isset($this->myInfo['number_saves']) ? $this->myInfo['number_saves'] : ''?>-->
                    累计售出：<!--<? echo isset($this->myInfo['number_sold']) ? $this->myInfo['number_sold'] : ''?>-->

                </td>
                <td style="width: 50%;font-size: 14px;font-weight:bold">
                    累计收藏：<!--<? echo isset($this->otheInfo['wishSave']) ? $this->otheInfo['wishSave'] . '+' : ''?>-->
                    累计售出：<!--<? echo isset($this->otheInfo['amount']) ? $this->otheInfo['amount'] . '+' : ''?>-->
                    累计评论数：<!--<? echo isset($this->otheInfo['rateNum']) ? $this->otheInfo['rateNum'] : ''?>-->
                    产品评分：<!--<? echo isset($this->otheInfo['rateScore']) ? $this->otheInfo['rateScore'] . '分' : ''?>-->
                    最近30天评论数：<!--<? echo isset($this->otheInfo['rateNum30']) ? $this->otheInfo['rateNum30'] . '+' : ''?>-->
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <table style="" width="100%" border="1" id="addKeywordTable">
                        <tr>
                            <td colspan="14" style="font-size: 20px;text-align: center;font-weight:bold">我的关键词</td>
                        </tr>
                        <tr style="text-align: center">
                            <td></td>
                            <td>关键词</td>
                            <td>预计潜在搜索量</td>
                            <td>预计竞争性</td>
                            <td>竞争值</td>
                            <td>产品总数</td>
                            <td>有销量产品数</td>
                            <td>有销量产品占比</td>
                            <td>平均价格</td>
                            <td>近7天产品数增幅</td>
                            <td>累计销量</td>
                            <td>累计评论</td>
                            <td>近7天评论</td>
                            <td>近7天评论环比增幅</td>
                        </tr>
                        <!--<? if(!empty($this->tagList)){ foreach ($this->tagList as $row) { ?>-->
                        <tr style="text-align: center" class="change" onclick="lookProductObj.onclickTr(this)">
                            <td><input type="checkbox" name="check[]"  _value="addslashes($row['keyword'])" onclick="lookProductObj.keywordNumber()"></td>
                            <td class="baiduFanyi"><!--<? echo $row['keyword'] ?>--></td>
                            <td><!--<? echo !empty($this->clevel[$row['reach_level']]) ? $this->clevel[$row['reach_level']] : $row['reach_level'] ?>--></td>
                            <td><!--<? echo !empty($this->clevel[$row['competition_level']]) ? $this->clevel[$row['competition_level']] : $row['competition_level'] ?>--></td>
                            <td><!--<? echo round($row['high_bid'], 2) ?>--></td>
                            <td><!--<? echo $row['itemCount'] ?>--></td>
                            <td><!--<? echo $row['itemAmount'] ?>--></td>
                            <td><!--<? echo $row['itemAmountRate'] . '%' ?>--></td>
                            <td><!--<? echo '$(' . $row['avgWishPrice'] . '+' . $row['avgFreightPrice'] . ')' ?>--></td>
                            <td><!--<? echo $row['itemCountRate'] . '%' ?>--></td>
                            <td><!--<? echo $row['amount'] . '+' ?>--></td>
                            <td><!--<? echo $row['rateNum'] ?>--></td>
                            <td><!--<? echo $row['rateNum7'] ?>--></td>
                            <td><!--<? echo $row['rateNum7Rate'] . '%' ?>--></td>
                        </tr>
                        <!--<? }} ?>-->
                        <tr id="addKeywordtr">
                            <td colspan="14" style="text-align: center">
                                <a onclick="lookProductObj.addKeyword()">手动添加关键词（填中文自动翻译成英文,会卡顿一小会）</a>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <table style="" width="100%" border="1">
                        <tr>
                            <td colspan="14" style="font-size: 20px;text-align: center;font-weight:bold">别人的关键词</td>
                        </tr>
                        <tr style="text-align: center">
                            <td></td>
                            <td>关键词</td>
                            <td>预计潜在搜索量</td>
                            <td>预计竞争性</td>
                            <td>竞争值</td>
                            <td>产品总数</td>
                            <td>有销量产品数</td>
                            <td>有销量产品占比</td>
                            <td>平均价格</td>
                            <td>近7天产品数增幅</td>
                            <td>累计销量</td>
                            <td>累计评论</td>
                            <td>近7天评论</td>
                            <td>近7天评论环比增幅</td>
                        </tr>
                        <!--<? if(!empty($this->oTagList)){ foreach ($this->oTagList as $row) { ?>-->
                        <tr style="text-align: center" class="change" onclick="lookProductObj.onclickTr(this)">
                            <td><input type="checkbox" name="check[]"  _value="addslashes($row['keyword'])" onclick="lookProductObj.keywordNumber()"></td>
                            <td class="baiduFanyi"><!--<? echo $row['keyword'] ?>--></td>
                            <td><!--<? echo !empty($this->clevel[$row['reach_level']]) ? $this->clevel[$row['reach_level']] : $row['reach_level'] ?>--></td>
                            <td><!--<? echo !empty($this->clevel[$row['competition_level']]) ? $this->clevel[$row['competition_level']] : $row['competition_level'] ?>--></td>
                            <td><!--<? echo round($row['high_bid'], 2) ?>--></td>
                            <td><!--<? echo $row['itemCount'] ?>--></td>
                            <td><!--<? echo $row['itemAmount'] ?>--></td>
                            <td><!--<? echo $row['itemAmountRate'] . '%' ?>--></td>
                            <td><!--<? echo '$(' . $row['avgWishPrice'] . '+' . $row['avgFreightPrice'] . ')' ?>--></td>
                            <td><!--<? echo $row['itemCountRate'] . '%' ?>--></td>
                            <td><!--<? echo $row['amount'] . '+' ?>--></td>
                            <td><!--<? echo $row['rateNum'] ?>--></td>
                            <td><!--<? echo $row['rateNum7'] ?>--></td>
                            <td><!--<? echo $row['rateNum7Rate'] . '%' ?>--></td>
                        </tr>
                        <!--<? } } ?>-->
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <table style="" width="100%" border="1">
                        <tr>
                            <td colspan="14" style="font-size: 20px;text-align: center;font-weight:bold">别人的PB关键词</td>
                        </tr>
                        <tr style="text-align: center">
                            <td></td>
                            <td>关键词</td>
                            <td>预计潜在搜索量</td>
                            <td>预计竞争性</td>
                            <td>竞争值</td>
                            <td>产品总数</td>
                            <td>有销量产品数</td>
                            <td>有销量产品占比</td>
                            <td>平均价格</td>
                            <td>近7天产品数增幅</td>
                            <td>累计销量</td>
                            <td>累计评论</td>
                            <td>近7天评论</td>
                            <td>近7天评论环比增幅</td>
                        </tr>
                        <!--<? if(!empty($this->pbTagList)){ foreach ($this->pbTagList as $row) { ?>-->
                        <tr style="text-align: center" class="change" onclick="lookProductObj.onclickTr(this)">
                            <td><input type="checkbox" name="check[]"  _value="addslashes($row['keyword'])" onclick="lookProductObj.keywordNumber()"></td>
                            <td class="baiduFanyi"><!--<? echo $row['keyword'] ?>--></td>
                            <td><!--<? echo !empty($this->clevel[$row['reach_level']]) ? $this->clevel[$row['reach_level']] : $row['reach_level'] ?>--></td>
                            <td><!--<? echo !empty($this->clevel[$row['competition_level']]) ? $this->clevel[$row['competition_level']] : $row['competition_level'] ?>--></td>
                            <td><!--<? echo round($row['high_bid'], 2) ?>--></td>
                            <td><!--<? echo $row['itemCount'] ?>--></td>
                            <td><!--<? echo $row['itemAmount'] ?>--></td>
                            <td><!--<? echo $row['itemAmountRate'] . '%' ?>--></td>
                            <td><!--<? echo '$(' . $row['avgWishPrice'] . '+' . $row['avgFreightPrice'] . ')' ?>--></td>
                            <td><!--<? echo $row['itemCountRate'] . '%' ?>--></td>
                            <td><!--<? echo $row['amount'] . '+' ?>--></td>
                            <td><!--<? echo $row['rateNum'] ?>--></td>
                            <td><!--<? echo $row['rateNum7'] ?>--></td>
                            <td><!--<? echo $row['rateNum7Rate'] . '%' ?>--></td>
                        </tr>
                        <!--<? } } ?>-->
                    </table>
                </td>
            </tr>
            <tr>
                <td style="width: 50%;font-size: 14px;font-weight:bold;text-align: center">我的产品描述<br><textarea style="width: 100%;height: 300px" __html="!empty($this->myInfo['description']) ? $this->myInfo['description'] : ''"></textarea></td>
                <td style="width: 50%;font-size: 14px;font-weight:bold;text-align: center">别人的产品描述<br><textarea style="width: 100%;height: 300px" __html="!empty($this->otheInfo['itemDesc']) ? $this->otheInfo['itemDesc'] : ''"></textarea></td>
            </tr>
        </table>

    </form>
</div>
<script _src="ROOT_URL.'/view/js/base.js'"></script>
<script _src="ROOT_URL.'/view/js/wish/lookProduct.js'"></script>